<div class="form">
	
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sections-form',
	'enableAjaxValidation'=>false,
	'action'=>($model->isNewRecord ? '/index.php?r=admin/sections/create' : ''),
)); ?>

	<p class="note">Поля, отмеченные <span class="required">*</span> обязательны для заполнения</p>

	<?php echo $form->errorSummary($model); ?>

	<table width="83%" cellpadding="5" cellspacing="0">
	<tr>
		<td class="">
			<?php echo $form->labelEx($model,'name'); ?>
			<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'name'); ?>
		</td>

		<td class="">
			<?php echo $form->labelEx($model,'order_id'); ?>
			<?php echo $form->textField($model,'order_id'); ?>
			<?php echo $form->error($model,'order_id'); ?>
		</td>

		<td class="">
			<?php echo $form->labelEx($model,'enabled'); ?>
			<?php echo $form->checkBox($model,'enabled'); ?>
			<?php echo $form->error($model,'enabled'); ?>
		</td>
	</tr>
	<tr>
		<td colspan="3" class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Добавить раздел' : 'Сохранить'); ?>
		</td>
	</tr>
	</table>

<?php $this->endWidget(); ?>

</div><!-- form -->